<template>
  <div class="container">
    <!-- 无序列表 -->
    <Category title="游戏">
      <!-- <template scope="data">
        <ul>
          <li v-for="(g,index) in data.games" :key="index">{{g}}</li>
        </ul> -->
        <!-- 解构赋值 -->
        <template scope="{games}">
          <ul>
            <li v-for="(g,index) in games" :key="index">{{g}}</li>
          </ul>
      </template>
    </Category>
    <!-- 有序 -->
    <Category title="游戏">
      <template slot-scope="data">
        <ol>
          <li v-for="(g,index) in data.games" :key="index">{{g}}</li>
        </ol>
      </template>
    </Category>
    <!-- h4 -->
    <Category title="游戏">
      <template scope="data">
        <h4 v-for="(g,index) in data.games" :key="index">{{g}}</h4>
      </template>
      
    </Category>
  </div>
</template>

<script>
  import Category from './components/Category';
  export default {
    name: 'App',
    components: {Category},
    
    methods: {
      
    },
   
  }
</script>

<style lang="less" scoped>
  .container{
    display: flex;
    justify-content: space-around;
  }
  video{
    width: 100%;
  }
  .foot{
    display: flex;
    justify-content: space-around;
  }
</style>
